package com.feiyuan.core.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 任务
 */
@Data
@TableName("sys_quartz_job")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="quartzJob对象", description="任务调度信息")
public class SysQuartzJob implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 任务调度参数key
     */
    public static final String JOB_PARAM_KEY = "JOB_PARAM_KEY";

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "任务类名")
    private String jobClassName;
    @ApiModelProperty(value = "cron表达式")
    private String cronExpression;
    @ApiModelProperty(value = "参数")
    private String parameter;
    @ApiModelProperty(value = "描述")
    private String description;
    @ApiModelProperty(value = "状态 0正常 -1停止")
    private Integer status;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
